<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621679648747"><span id="local-6989586621679648748"><span id="local-6989586621679648749"><span id="local-6989586621679648750"><span id="local-6989586621679648751"></span></span></span></span></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE DeriveGeneric      #-}</span><span>
</span><span id="line-3"></span><span class="hs-pragma">{-# LANGUAGE RankNTypes         #-}</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Types.ModuleRenaming</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-6"></span><span>    </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier">ModuleRenaming</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-7"></span><span>    </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#interpModuleRenaming"><span class="hs-identifier">interpModuleRenaming</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-8"></span><span>    </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#defaultRenaming"><span class="hs-identifier">defaultRenaming</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-9"></span><span>    </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#isDefaultRenaming"><span class="hs-identifier">isDefaultRenaming</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-10"></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.CabalSpecVersion.html"><span class="hs-identifier">Distribution.CabalSpecVersion</span></a></span><span>
</span><span id="line-13"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Base.html#empty"><span class="hs-identifier">empty</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-15"></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.ModuleName.html"><span class="hs-identifier">Distribution.ModuleName</span></a></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Parsec.html"><span class="hs-identifier">Distribution.Parsec</span></a></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Pretty.html"><span class="hs-identifier">Distribution.Pretty</span></a></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../containers/src/Data.Map.html#"><span class="hs-identifier">Data.Map</span></a></span><span>                   </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Map</span></span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../containers/src/Data.Set.html#"><span class="hs-identifier">Data.Set</span></a></span><span>                   </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Set</span></span><span>
</span><span id="line-22"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="Distribution.Compat.CharParsing.html"><span class="hs-identifier">Distribution.Compat.CharParsing</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span>           </span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.html#"><span class="hs-identifier">Text.PrettyPrint</span></a></span><span>           </span><span class="hs-special">(</span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#hsep"><span class="hs-identifier">hsep</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#parens"><span class="hs-identifier">parens</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#punctuate"><span class="hs-identifier">punctuate</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#text"><span class="hs-identifier">text</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#comma"><span class="hs-identifier">comma</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span class="hs-comment">-- | Renaming applied to the modules provided by a package.</span><span>
</span><span id="line-26"></span><span class="hs-comment">-- The boolean indicates whether or not to also include all of the</span><span>
</span><span id="line-27"></span><span class="hs-comment">-- original names of modules.  Thus, @ModuleRenaming False []@ is</span><span>
</span><span id="line-28"></span><span class="hs-comment">-- &quot;don't expose any modules, and @ModuleRenaming True [(&quot;Data.Bool&quot;, &quot;Bool&quot;)]@</span><span>
</span><span id="line-29"></span><span class="hs-comment">-- is, &quot;expose all modules, but also expose @Data.Bool@ as @Bool@&quot;.</span><span>
</span><span id="line-30"></span><span class="hs-comment">-- If a renaming is omitted you get the 'DefaultRenaming'.</span><span>
</span><span id="line-31"></span><span class="hs-comment">--</span><span>
</span><span id="line-32"></span><span class="hs-comment">-- (NB: This is a list not a map so that we can preserve order.)</span><span>
</span><span id="line-33"></span><span class="hs-comment">--</span><span>
</span><span id="line-34"></span><span id="local-6989586621679648733"><span id="local-6989586621679648734"></span></span><span class="hs-keyword">data</span><span> </span><span id="ModuleRenaming"><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-var">ModuleRenaming</span></a></span></span><span>
</span><span id="line-35"></span><span>        </span><span class="hs-comment">-- | A module renaming/thinning; e.g., @(A as B, C as C)@</span><span>
</span><span id="line-36"></span><span>        </span><span class="hs-comment">-- brings @B@ and @C@ into scope.</span><span>
</span><span id="line-37"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span id="ModuleRenaming"><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-var">ModuleRenaming</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-38"></span><span>        </span><span class="hs-comment">-- | The default renaming, bringing all exported modules</span><span>
</span><span id="line-39"></span><span>        </span><span class="hs-comment">-- into scope.</span><span>
</span><span id="line-40"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span id="DefaultRenaming"><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span></span><span>
</span><span id="line-41"></span><span>        </span><span class="hs-comment">-- | Hiding renaming, e.g., @hiding (A, B)@, bringing all</span><span>
</span><span id="line-42"></span><span>        </span><span class="hs-comment">-- exported modules into scope except the hidden ones.</span><span>
</span><span id="line-43"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span id="HidingRenaming"><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#HidingRenaming"><span class="hs-identifier hs-var">HidingRenaming</span></a></span></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-44"></span><span>    </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679648716"><span id="local-6989586621679648718"><span id="local-6989586621679648728"><span class="annot"><span class="annottext">Int -&gt; ModuleRenaming -&gt; ShowS
[ModuleRenaming] -&gt; ShowS
ModuleRenaming -&gt; String
(Int -&gt; ModuleRenaming -&gt; ShowS)
-&gt; (ModuleRenaming -&gt; String)
-&gt; ([ModuleRenaming] -&gt; ShowS)
-&gt; Show ModuleRenaming
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [ModuleRenaming] -&gt; ShowS
$cshowList :: [ModuleRenaming] -&gt; ShowS
show :: ModuleRenaming -&gt; String
$cshow :: ModuleRenaming -&gt; String
showsPrec :: Int -&gt; ModuleRenaming -&gt; ShowS
$cshowsPrec :: Int -&gt; ModuleRenaming -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679648689"><span id="local-6989586621679648705"><span id="local-6989586621679648708"><span id="local-6989586621679648710"><span class="annot"><span class="annottext">ReadPrec [ModuleRenaming]
ReadPrec ModuleRenaming
Int -&gt; ReadS ModuleRenaming
ReadS [ModuleRenaming]
(Int -&gt; ReadS ModuleRenaming)
-&gt; ReadS [ModuleRenaming]
-&gt; ReadPrec ModuleRenaming
-&gt; ReadPrec [ModuleRenaming]
-&gt; Read ModuleRenaming
forall a.
(Int -&gt; ReadS a)
-&gt; ReadS [a] -&gt; ReadPrec a -&gt; ReadPrec [a] -&gt; Read a
readListPrec :: ReadPrec [ModuleRenaming]
$creadListPrec :: ReadPrec [ModuleRenaming]
readPrec :: ReadPrec ModuleRenaming
$creadPrec :: ReadPrec ModuleRenaming
readList :: ReadS [ModuleRenaming]
$creadList :: ReadS [ModuleRenaming]
readsPrec :: Int -&gt; ReadS ModuleRenaming
$creadsPrec :: Int -&gt; ReadS ModuleRenaming
</span><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Read</span></a></span></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679648675"><span id="local-6989586621679648682"><span class="annot"><span class="annottext">ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
(ModuleRenaming -&gt; ModuleRenaming -&gt; Bool)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Bool) -&gt; Eq ModuleRenaming
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c/= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
== :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c== :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679648645"><span id="local-6989586621679648647"><span id="local-6989586621679648650"><span id="local-6989586621679648653"><span id="local-6989586621679648656"><span id="local-6989586621679648661"><span id="local-6989586621679648667"><span class="annot"><span class="annottext">Eq ModuleRenaming
Eq ModuleRenaming
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Ordering)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Bool)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Bool)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Bool)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; Bool)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming)
-&gt; (ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming)
-&gt; Ord ModuleRenaming
ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
ModuleRenaming -&gt; ModuleRenaming -&gt; Ordering
ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming
$cmin :: ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming
max :: ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming
$cmax :: ModuleRenaming -&gt; ModuleRenaming -&gt; ModuleRenaming
&gt;= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c&gt;= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
&gt; :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c&gt; :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
&lt;= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c&lt;= :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
&lt; :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
$c&lt; :: ModuleRenaming -&gt; ModuleRenaming -&gt; Bool
compare :: ModuleRenaming -&gt; ModuleRenaming -&gt; Ordering
$ccompare :: ModuleRenaming -&gt; ModuleRenaming -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679648604"><span id="local-6989586621679648606"><span id="local-6989586621679648608"><span id="local-6989586621679648610"><span id="local-6989586621679648612"><span id="local-6989586621679648614"><span id="local-6989586621679648616"><span id="local-6989586621679648618"><span id="local-6989586621679648620"><span id="local-6989586621679648622"><span id="local-6989586621679648624"><span id="local-6989586621679648626"><span id="local-6989586621679648632"><span id="local-6989586621679648639"><span class="annot"><span class="annottext">Typeable ModuleRenaming
Typeable ModuleRenaming
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; ModuleRenaming -&gt; c ModuleRenaming)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ModuleRenaming)
-&gt; (ModuleRenaming -&gt; Constr)
-&gt; (ModuleRenaming -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ModuleRenaming))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e))
    -&gt; Maybe (c ModuleRenaming))
-&gt; ((forall b. Data b =&gt; b -&gt; b)
    -&gt; ModuleRenaming -&gt; ModuleRenaming)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r)
-&gt; (forall u.
    (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; ModuleRenaming -&gt; m ModuleRenaming)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; ModuleRenaming -&gt; m ModuleRenaming)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; ModuleRenaming -&gt; m ModuleRenaming)
-&gt; Data ModuleRenaming
ModuleRenaming -&gt; DataType
ModuleRenaming -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; ModuleRenaming -&gt; ModuleRenaming
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ModuleRenaming
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ModuleRenaming -&gt; c ModuleRenaming
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ModuleRenaming)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c ModuleRenaming)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; ModuleRenaming -&gt; m ModuleRenaming
gmapQi :: forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; u
$cgmapQi :: forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; ModuleRenaming -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; ModuleRenaming -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; ModuleRenaming -&gt; ModuleRenaming
$cgmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; ModuleRenaming -&gt; ModuleRenaming
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c ModuleRenaming)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c ModuleRenaming)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ModuleRenaming)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c ModuleRenaming)
dataTypeOf :: ModuleRenaming -&gt; DataType
$cdataTypeOf :: ModuleRenaming -&gt; DataType
toConstr :: ModuleRenaming -&gt; Constr
$ctoConstr :: ModuleRenaming -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ModuleRenaming
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c ModuleRenaming
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ModuleRenaming -&gt; c ModuleRenaming
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; ModuleRenaming -&gt; c ModuleRenaming
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">(forall x. ModuleRenaming -&gt; Rep ModuleRenaming x)
-&gt; (forall x. Rep ModuleRenaming x -&gt; ModuleRenaming)
-&gt; Generic ModuleRenaming
forall x. Rep ModuleRenaming x -&gt; ModuleRenaming
forall x. ModuleRenaming -&gt; Rep ModuleRenaming x
forall a.
(forall x. a -&gt; Rep a x) -&gt; (forall x. Rep a x -&gt; a) -&gt; Generic a
$cto :: forall x. Rep ModuleRenaming x -&gt; ModuleRenaming
$cfrom :: forall x. ModuleRenaming -&gt; Rep ModuleRenaming x
</span><a href="../../base/src/GHC.Generics.html#Generic"><span class="hs-identifier hs-var hs-var hs-var hs-var">Generic</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span class="hs-comment">-- | Interpret a 'ModuleRenaming' as a partial map from 'ModuleName'</span><span>
</span><span id="line-47"></span><span class="hs-comment">-- to 'ModuleName'.  For efficiency, you should partially apply it</span><span>
</span><span id="line-48"></span><span class="hs-comment">-- with 'ModuleRenaming' and then reuse it.</span><span>
</span><span id="line-49"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#interpModuleRenaming"><span class="hs-identifier hs-type">interpModuleRenaming</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span>
</span><span id="line-50"></span><span id="interpModuleRenaming"><span class="annot"><span class="annottext">interpModuleRenaming :: ModuleRenaming -&gt; ModuleName -&gt; Maybe ModuleName
</span><a href="Distribution.Types.ModuleRenaming.html#interpModuleRenaming"><span class="hs-identifier hs-var hs-var">interpModuleRenaming</span></a></span></span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ModuleName -&gt; Maybe ModuleName
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span>
</span><span id="line-51"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#interpModuleRenaming"><span class="hs-identifier hs-var">interpModuleRenaming</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span id="local-6989586621679648595"><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648595"><span class="hs-identifier hs-var">rns</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-52"></span><span>    </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621679648593"><span class="annot"><span class="annottext">m :: Map ModuleName ModuleName
</span><a href="#local-6989586621679648593"><span class="hs-identifier hs-var hs-var">m</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[(ModuleName, ModuleName)] -&gt; Map ModuleName ModuleName
forall k a. Ord k =&gt; [(k, a)] -&gt; Map k a
</span><a href="../../containers/src/Data.Map.Internal.html#fromList"><span class="hs-identifier hs-var">Map.fromList</span></a></span><span> </span><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648595"><span class="hs-identifier hs-var">rns</span></a></span><span>
</span><span id="line-53"></span><span>    </span><span class="hs-keyword">in</span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679648591"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648591"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ModuleName -&gt; Map ModuleName ModuleName -&gt; Maybe ModuleName
forall k a. Ord k =&gt; k -&gt; Map k a -&gt; Maybe a
</span><a href="../../containers/src/Data.Map.Internal.html#lookup"><span class="hs-identifier hs-var">Map.lookup</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648591"><span class="hs-identifier hs-var">k</span></a></span><span> </span><span class="annot"><span class="annottext">Map ModuleName ModuleName
</span><a href="#local-6989586621679648593"><span class="hs-identifier hs-var">m</span></a></span><span>
</span><span id="line-54"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#interpModuleRenaming"><span class="hs-identifier hs-var">interpModuleRenaming</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#HidingRenaming"><span class="hs-identifier hs-type">HidingRenaming</span></a></span><span> </span><span id="local-6989586621679648589"><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648589"><span class="hs-identifier hs-var">hs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-55"></span><span>    </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621679648587"><span class="annot"><span class="annottext">s :: Set ModuleName
</span><a href="#local-6989586621679648587"><span class="hs-identifier hs-var hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[ModuleName] -&gt; Set ModuleName
forall a. Ord a =&gt; [a] -&gt; Set a
</span><a href="../../containers/src/Data.Set.Internal.html#fromList"><span class="hs-identifier hs-var">Set.fromList</span></a></span><span> </span><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648589"><span class="hs-identifier hs-var">hs</span></a></span><span>
</span><span id="line-56"></span><span>    </span><span class="hs-keyword">in</span><span> </span><span class="hs-glyph">\</span><span id="local-6989586621679648585"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648585"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648585"><span class="hs-identifier hs-var">k</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName -&gt; Set ModuleName -&gt; Bool
forall a. Ord a =&gt; a -&gt; Set a -&gt; Bool
</span><a href="../../containers/src/Data.Set.Internal.html#member"><span class="hs-operator hs-var">`Set.member`</span></a></span><span> </span><span class="annot"><span class="annottext">Set ModuleName
</span><a href="#local-6989586621679648587"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">Maybe ModuleName
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">ModuleName -&gt; Maybe ModuleName
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648585"><span class="hs-identifier hs-var">k</span></a></span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span class="hs-comment">-- | The default renaming, if something is specified in @build-depends@</span><span>
</span><span id="line-59"></span><span class="hs-comment">-- only.</span><span>
</span><span id="line-60"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#defaultRenaming"><span class="hs-identifier hs-type">defaultRenaming</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span>
</span><span id="line-61"></span><span id="defaultRenaming"><span class="annot"><span class="annottext">defaultRenaming :: ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#defaultRenaming"><span class="hs-identifier hs-var hs-var">defaultRenaming</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span><span>
</span><span id="line-62"></span><span>
</span><span id="line-63"></span><span class="hs-comment">-- | Tests if its the default renaming; we can use a more compact syntax</span><span>
</span><span id="line-64"></span><span class="hs-comment">-- in 'Distribution.Types.IncludeRenaming.IncludeRenaming' in this case.</span><span>
</span><span id="line-65"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#isDefaultRenaming"><span class="hs-identifier hs-type">isDefaultRenaming</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-66"></span><span id="isDefaultRenaming"><span class="annot"><span class="annottext">isDefaultRenaming :: ModuleRenaming -&gt; Bool
</span><a href="Distribution.Types.ModuleRenaming.html#isDefaultRenaming"><span class="hs-identifier hs-var hs-var">isDefaultRenaming</span></a></span></span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-67"></span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#isDefaultRenaming"><span class="hs-identifier hs-var">isDefaultRenaming</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-68"></span><span>
</span><span id="line-69"></span><span>
</span><span id="line-70"></span><span>
</span><span id="line-71"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679648578"><span id="local-6989586621679648580"><span id="local-6989586621679648582"><span class="annot"><a href="../../binary/src/Data.Binary.Class.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-72"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679648571"><span id="local-6989586621679648573"><span class="annot"><a href="Distribution.Utils.Structured.html#Structured"><span class="hs-identifier hs-type">Structured</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-73"></span><span>
</span><span id="line-74"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="../../deepseq/src/Control.DeepSeq.html#NFData"><span class="hs-identifier hs-type">NFData</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679648541"><span class="annot"><span class="annottext">rnf :: ModuleRenaming -&gt; ()
</span><a href="../../deepseq/src/Control.DeepSeq.html#rnf"><span class="hs-identifier hs-var hs-var hs-var hs-var">rnf</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ModuleRenaming -&gt; ()
forall a. (Generic a, GNFData (Rep a)) =&gt; a -&gt; ()
</span><a href="Distribution.Compat.Prelude.html#genericRnf"><span class="hs-identifier hs-var">genericRnf</span></a></span><span>
</span><span id="line-75"></span><span>
</span><span id="line-76"></span><span class="hs-comment">-- NB: parentheses are mandatory, because later we may extend this syntax</span><span>
</span><span id="line-77"></span><span class="hs-comment">-- to allow &quot;hiding (A, B)&quot; or other modifier words.</span><span>
</span><span id="line-78"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679648536"><span class="annot"><a href="Distribution.Pretty.html#Pretty"><span class="hs-identifier hs-type">Pretty</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-79"></span><span>  </span><span id="local-6989586621679648528"><span class="annot"><span class="annottext">pretty :: ModuleRenaming -&gt; Doc
</span><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var hs-var hs-var hs-var">pretty</span></a></span></span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Doc
forall a. Monoid a =&gt; a
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var">mempty</span></a></span><span>
</span><span id="line-80"></span><span>  </span><span class="annot"><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#HidingRenaming"><span class="hs-identifier hs-type">HidingRenaming</span></a></span><span> </span><span id="local-6989586621679648526"><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648526"><span class="hs-identifier hs-var">hides</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-81"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;hiding&quot;</span></span><span> </span><span class="annot"><span class="annottext">Doc -&gt; Doc -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">Doc -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#parens"><span class="hs-identifier hs-var">parens</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Doc] -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#hsep"><span class="hs-identifier hs-var">hsep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Doc -&gt; [Doc] -&gt; [Doc]
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#punctuate"><span class="hs-identifier hs-var">punctuate</span></a></span><span> </span><span class="annot"><span class="annottext">Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#comma"><span class="hs-identifier hs-var">comma</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(ModuleName -&gt; Doc) -&gt; [ModuleName] -&gt; [Doc]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName -&gt; Doc
forall a. Pretty a =&gt; a -&gt; Doc
</span><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648526"><span class="hs-identifier hs-var">hides</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-82"></span><span>  </span><span class="annot"><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span id="local-6989586621679648524"><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648524"><span class="hs-identifier hs-var">rns</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-83"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Doc -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#parens"><span class="hs-identifier hs-var">parens</span></a></span><span> </span><span class="annot"><span class="annottext">(Doc -&gt; Doc) -&gt; ([Doc] -&gt; Doc) -&gt; [Doc] -&gt; Doc
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">[Doc] -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#hsep"><span class="hs-identifier hs-var">hsep</span></a></span><span> </span><span class="annot"><span class="annottext">([Doc] -&gt; Doc) -&gt; [Doc] -&gt; Doc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Doc -&gt; [Doc] -&gt; [Doc]
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#punctuate"><span class="hs-identifier hs-var">punctuate</span></a></span><span> </span><span class="annot"><span class="annottext">Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#comma"><span class="hs-identifier hs-var">comma</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">((ModuleName, ModuleName) -&gt; Doc)
-&gt; [(ModuleName, ModuleName)] -&gt; [Doc]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">(ModuleName, ModuleName) -&gt; Doc
forall {a}. (Eq a, Pretty a) =&gt; (a, a) -&gt; Doc
</span><a href="#local-6989586621679648522"><span class="hs-identifier hs-var">dispEntry</span></a></span><span> </span><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648524"><span class="hs-identifier hs-var">rns</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-84"></span><span>    </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679648522"><span class="annot"><span class="annottext">dispEntry :: (a, a) -&gt; Doc
</span><a href="#local-6989586621679648522"><span class="hs-identifier hs-var hs-var">dispEntry</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679648515"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648515"><span class="hs-identifier hs-var">orig</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679648514"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648514"><span class="hs-identifier hs-var">new</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-85"></span><span>            </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648515"><span class="hs-identifier hs-var">orig</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648514"><span class="hs-identifier hs-var">new</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Doc
forall a. Pretty a =&gt; a -&gt; Doc
</span><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648515"><span class="hs-identifier hs-var">orig</span></a></span><span>
</span><span id="line-86"></span><span>            </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">a -&gt; Doc
forall a. Pretty a =&gt; a -&gt; Doc
</span><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648515"><span class="hs-identifier hs-var">orig</span></a></span><span> </span><span class="annot"><span class="annottext">Doc -&gt; Doc -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;as&quot;</span></span><span> </span><span class="annot"><span class="annottext">Doc -&gt; Doc -&gt; Doc
</span><a href="../../pretty/src/Text.PrettyPrint.HughesPJ.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; Doc
forall a. Pretty a =&gt; a -&gt; Doc
</span><a href="Distribution.Pretty.html#pretty"><span class="hs-identifier hs-var">pretty</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679648514"><span class="hs-identifier hs-var">new</span></a></span><span>
</span><span id="line-87"></span><span>
</span><span id="line-88"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Distribution.Parsec.html#Parsec"><span class="hs-identifier hs-type">Parsec</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-89"></span><span>    </span><span id="local-6989586621679648484"><span class="annot"><span class="annottext">parsec :: forall (m :: * -&gt; *). CabalParsing m =&gt; m ModuleRenaming
</span><a href="Distribution.Parsec.html#parsec"><span class="hs-identifier hs-var hs-var hs-var hs-var">parsec</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-90"></span><span>        </span><span id="local-6989586621679648482"><span class="annot"><span class="annottext">CabalSpecVersion
</span><a href="#local-6989586621679648482"><span class="hs-identifier hs-var">csv</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">m CabalSpecVersion
forall (m :: * -&gt; *). CabalParsing m =&gt; m CabalSpecVersion
</span><a href="Distribution.Parsec.html#askCabalSpecVersion"><span class="hs-identifier hs-var">askCabalSpecVersion</span></a></span><span>
</span><span id="line-91"></span><span>        </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">CabalSpecVersion
</span><a href="#local-6989586621679648482"><span class="hs-identifier hs-var">csv</span></a></span><span> </span><span class="annot"><span class="annottext">CabalSpecVersion -&gt; CabalSpecVersion -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">CabalSpecVersion
</span><a href="Distribution.CabalSpecVersion.html#CabalSpecV3_0"><span class="hs-identifier hs-var">CabalSpecV3_0</span></a></span><span>
</span><span id="line-92"></span><span>        </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">(forall a. m a -&gt; m a) -&gt; m ModuleName -&gt; m ModuleRenaming
forall (m :: * -&gt; *).
CabalParsing m =&gt;
(forall a. m a -&gt; m a) -&gt; m ModuleName -&gt; m ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#moduleRenamingParsec"><span class="hs-identifier hs-var">moduleRenamingParsec</span></a></span><span> </span><span class="annot"><span class="annottext">forall a. m a -&gt; m a
forall {m :: * -&gt; *} {a}. (Monad m, CharParsing m) =&gt; m a -&gt; m a
</span><a href="#local-6989586621679648478"><span class="hs-identifier hs-var">parensLax</span></a></span><span>    </span><span class="annot"><span class="annottext">m ModuleName
forall (m :: * -&gt; *) a. (CabalParsing m, Parsec a) =&gt; m a
</span><a href="Distribution.Parsec.html#lexemeParsec"><span class="hs-identifier hs-var">lexemeParsec</span></a></span><span>
</span><span id="line-93"></span><span>        </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">(forall a. m a -&gt; m a) -&gt; m ModuleName -&gt; m ModuleRenaming
forall (m :: * -&gt; *).
CabalParsing m =&gt;
(forall a. m a -&gt; m a) -&gt; m ModuleName -&gt; m ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#moduleRenamingParsec"><span class="hs-identifier hs-var">moduleRenamingParsec</span></a></span><span> </span><span class="annot"><span class="annottext">forall a. m a -&gt; m a
</span><a href="#local-6989586621679648474"><span class="hs-identifier hs-var">parensStrict</span></a></span><span> </span><span class="annot"><span class="annottext">m ModuleName
forall a (m :: * -&gt; *). (Parsec a, CabalParsing m) =&gt; m a
</span><a href="Distribution.Parsec.html#parsec"><span class="hs-identifier hs-var">parsec</span></a></span><span>
</span><span id="line-94"></span><span>      </span><span class="hs-keyword">where</span><span>
</span><span id="line-95"></span><span>        </span><span class="hs-comment">-- For cabal spec versions &lt; 3.0 white spaces were not skipped</span><span>
</span><span id="line-96"></span><span>        </span><span class="hs-comment">-- after the '(' and ')' tokens in the mixin field. This</span><span>
</span><span id="line-97"></span><span>        </span><span class="hs-comment">-- parser checks the cabal file version and does the correct</span><span>
</span><span id="line-98"></span><span>        </span><span class="hs-comment">-- skipping of spaces.</span><span>
</span><span id="line-99"></span><span>        </span><span id="local-6989586621679648478"><span class="annot"><span class="annottext">parensLax :: m a -&gt; m a
</span><a href="#local-6989586621679648478"><span class="hs-identifier hs-var hs-var">parensLax</span></a></span></span><span>    </span><span id="local-6989586621679648462"><span class="annot"><span class="annottext">m a
</span><a href="#local-6989586621679648462"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">m () -&gt; m () -&gt; m a -&gt; m a
forall (m :: * -&gt; *) bra ket a.
Applicative m =&gt;
m bra -&gt; m ket -&gt; m a -&gt; m a
</span><a href="Distribution.Compat.Parsing.html#between"><span class="hs-identifier hs-var">P.between</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; m Char
forall (m :: * -&gt; *). CharParsing m =&gt; Char -&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#char"><span class="hs-identifier hs-var">P.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'('</span></span><span> </span><span class="annot"><span class="annottext">m Char -&gt; m () -&gt; m ()
forall (m :: * -&gt; *) a b. Monad m =&gt; m a -&gt; m b -&gt; m b
</span><a href="../../base/src/GHC.Base.html#%3E%3E"><span class="hs-operator hs-var">&gt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span class="hs-special">)</span><span>   </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; m Char
forall (m :: * -&gt; *). CharParsing m =&gt; Char -&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#char"><span class="hs-identifier hs-var">P.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">')'</span></span><span> </span><span class="annot"><span class="annottext">m Char -&gt; m () -&gt; m ()
forall (m :: * -&gt; *) a b. Monad m =&gt; m a -&gt; m b -&gt; m b
</span><a href="../../base/src/GHC.Base.html#%3E%3E"><span class="hs-operator hs-var">&gt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span class="hs-special">)</span><span>   </span><span class="annot"><span class="annottext">m a
</span><a href="#local-6989586621679648462"><span class="hs-identifier hs-var">p</span></a></span><span>
</span><span id="line-100"></span><span>        </span><span id="local-6989586621679648474"><span class="annot"><span class="annottext">parensStrict :: m a -&gt; m a
</span><a href="#local-6989586621679648474"><span class="hs-identifier hs-var hs-var">parensStrict</span></a></span></span><span> </span><span id="local-6989586621679648454"><span class="annot"><span class="annottext">m a
</span><a href="#local-6989586621679648454"><span class="hs-identifier hs-var">p</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">m (Maybe Any) -&gt; m Char -&gt; m a -&gt; m a
forall (m :: * -&gt; *) bra ket a.
Applicative m =&gt;
m bra -&gt; m ket -&gt; m a -&gt; m a
</span><a href="Distribution.Compat.Parsing.html#between"><span class="hs-identifier hs-var">P.between</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; m Char
forall (m :: * -&gt; *). CharParsing m =&gt; Char -&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#char"><span class="hs-identifier hs-var">P.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'('</span></span><span> </span><span class="annot"><span class="annottext">m Char -&gt; m (Maybe Any) -&gt; m (Maybe Any)
forall (m :: * -&gt; *) a b. Monad m =&gt; m a -&gt; m b -&gt; m b
</span><a href="../../base/src/GHC.Base.html#%3E%3E"><span class="hs-operator hs-var">&gt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">m (Maybe Any)
forall {a}. m (Maybe a)
</span><a href="#local-6989586621679648453"><span class="hs-identifier hs-var">warnSpaces</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; m Char
forall (m :: * -&gt; *). CharParsing m =&gt; Char -&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#char"><span class="hs-identifier hs-var">P.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">')'</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">m a
</span><a href="#local-6989586621679648454"><span class="hs-identifier hs-var">p</span></a></span><span>
</span><span id="line-101"></span><span>
</span><span id="line-102"></span><span>        </span><span id="local-6989586621679648453"><span class="annot"><span class="annottext">warnSpaces :: m (Maybe a)
</span><a href="#local-6989586621679648453"><span class="hs-identifier hs-var hs-var">warnSpaces</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">m a -&gt; m (Maybe a)
forall (f :: * -&gt; *) a. Alternative f =&gt; f a -&gt; f (Maybe a)
</span><a href="../../base/src/Control.Applicative.html#optional"><span class="hs-identifier hs-var">P.optional</span></a></span><span> </span><span class="annot"><span class="annottext">(m a -&gt; m (Maybe a)) -&gt; m a -&gt; m (Maybe a)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span>
</span><span id="line-103"></span><span>            </span><span class="annot"><span class="annottext">m Char
forall (m :: * -&gt; *). CharParsing m =&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#space"><span class="hs-identifier hs-var">P.space</span></a></span><span> </span><span class="annot"><span class="annottext">m Char -&gt; m a -&gt; m a
forall (f :: * -&gt; *) a b. Applicative f =&gt; f a -&gt; f b -&gt; f b
</span><a href="../../base/src/GHC.Base.html#%2A%3E"><span class="hs-operator hs-var">*&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; m a
forall (m :: * -&gt; *) a. MonadFail m =&gt; String -&gt; m a
</span><a href="../../base/src/Control.Monad.Fail.html#fail"><span class="hs-identifier hs-var">fail</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;space after parenthesis, use cabal-version: 3.0 or higher&quot;</span></span><span>
</span><span id="line-104"></span><span>
</span><span id="line-105"></span><span id="local-6989586621679648933"><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#moduleRenamingParsec"><span class="hs-identifier hs-type">moduleRenamingParsec</span></a></span><span>
</span><span id="line-106"></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Parsec.html#CabalParsing"><span class="hs-identifier hs-type">CabalParsing</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679648933"><span class="hs-identifier hs-type">m</span></a></span><span>
</span><span id="line-107"></span><span>    </span><span class="hs-glyph">=&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-keyword">forall</span><span> </span><span id="local-6989586621679648934"><span class="annot"><a href="#local-6989586621679648934"><span class="hs-identifier hs-type">a</span></a></span></span><span class="hs-operator">.</span><span> </span><span class="annot"><a href="#local-6989586621679648933"><span class="hs-identifier hs-type">m</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679648934"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679648933"><span class="hs-identifier hs-type">m</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679648934"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span>  </span><span class="hs-comment">-- ^ between parens</span><span>
</span><span id="line-108"></span><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679648933"><span class="hs-identifier hs-type">m</span></a></span><span> </span><span class="annot"><a href="Distribution.ModuleName.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span>            </span><span class="hs-comment">-- ^ module name parser</span><span>
</span><span id="line-109"></span><span>    </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621679648933"><span class="hs-identifier hs-type">m</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-type">ModuleRenaming</span></a></span></span><span>
</span><span id="line-110"></span><span id="moduleRenamingParsec"><span class="annot"><span class="annottext">moduleRenamingParsec :: forall (m :: * -&gt; *).
CabalParsing m =&gt;
(forall a. m a -&gt; m a) -&gt; m ModuleName -&gt; m ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#moduleRenamingParsec"><span class="hs-identifier hs-var hs-var">moduleRenamingParsec</span></a></span></span><span> </span><span id="local-6989586621679648438"><span class="annot"><span class="annottext">forall a. m a -&gt; m a
</span><a href="#local-6989586621679648438"><span class="hs-identifier hs-var">bp</span></a></span></span><span> </span><span id="local-6989586621679648437"><span class="annot"><span class="annottext">m ModuleName
</span><a href="#local-6989586621679648437"><span class="hs-identifier hs-var">mn</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-111"></span><span>    </span><span class="hs-comment">-- NB: try not necessary as the first token is obvious</span><span>
</span><span id="line-112"></span><span>    </span><span class="annot"><span class="annottext">[m ModuleRenaming] -&gt; m ModuleRenaming
forall (m :: * -&gt; *) a. Alternative m =&gt; [m a] -&gt; m a
</span><a href="Distribution.Compat.Parsing.html#choice"><span class="hs-identifier hs-var">P.choice</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">m ModuleRenaming
</span><a href="#local-6989586621679648435"><span class="hs-identifier hs-var">parseRename</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">m ModuleRenaming
</span><a href="#local-6989586621679648434"><span class="hs-identifier hs-var">parseHiding</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">ModuleRenaming -&gt; m ModuleRenaming
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#DefaultRenaming"><span class="hs-identifier hs-var">DefaultRenaming</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-113"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-114"></span><span>    </span><span id="local-6989586621679648430"><span class="annot"><span class="annottext">cma :: m ()
</span><a href="#local-6989586621679648430"><span class="hs-identifier hs-var hs-var">cma</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Char -&gt; m Char
forall (m :: * -&gt; *). CharParsing m =&gt; Char -&gt; m Char
</span><a href="Distribution.Compat.CharParsing.html#char"><span class="hs-identifier hs-var">P.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">','</span></span><span> </span><span class="annot"><span class="annottext">m Char -&gt; m () -&gt; m ()
forall (m :: * -&gt; *) a b. Monad m =&gt; m a -&gt; m b -&gt; m b
</span><a href="../../base/src/GHC.Base.html#%3E%3E"><span class="hs-operator hs-var">&gt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span>
</span><span id="line-115"></span><span>    </span><span id="local-6989586621679648435"><span class="annot"><span class="annottext">parseRename :: m ModuleRenaming
</span><a href="#local-6989586621679648435"><span class="hs-identifier hs-var hs-var">parseRename</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-116"></span><span>        </span><span id="local-6989586621679648425"><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648425"><span class="hs-identifier hs-var">rns</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">m [(ModuleName, ModuleName)] -&gt; m [(ModuleName, ModuleName)]
forall a. m a -&gt; m a
</span><a href="#local-6989586621679648438"><span class="hs-identifier hs-var">bp</span></a></span><span> </span><span class="annot"><span class="annottext">m [(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648424"><span class="hs-identifier hs-var">parseList</span></a></span><span>
</span><span id="line-117"></span><span>        </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span>
</span><span id="line-118"></span><span>        </span><span class="annot"><span class="annottext">ModuleRenaming -&gt; m ModuleRenaming
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[(ModuleName, ModuleName)] -&gt; ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#ModuleRenaming"><span class="hs-identifier hs-var">ModuleRenaming</span></a></span><span> </span><span class="annot"><span class="annottext">[(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648425"><span class="hs-identifier hs-var">rns</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-119"></span><span>    </span><span id="local-6989586621679648434"><span class="annot"><span class="annottext">parseHiding :: m ModuleRenaming
</span><a href="#local-6989586621679648434"><span class="hs-identifier hs-var hs-var">parseHiding</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-120"></span><span>        </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; m String
forall (m :: * -&gt; *). CharParsing m =&gt; String -&gt; m String
</span><a href="Distribution.Compat.CharParsing.html#string"><span class="hs-identifier hs-var">P.string</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;hiding&quot;</span></span><span>
</span><span id="line-121"></span><span>        </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span> </span><span class="hs-comment">-- space isn't strictly required as next is an open paren</span><span>
</span><span id="line-122"></span><span>        </span><span id="local-6989586621679648415"><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648415"><span class="hs-identifier hs-var">hides</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">m [ModuleName] -&gt; m [ModuleName]
forall a. m a -&gt; m a
</span><a href="#local-6989586621679648438"><span class="hs-identifier hs-var">bp</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">m ModuleName -&gt; m () -&gt; m [ModuleName]
forall (m :: * -&gt; *) a sep. Alternative m =&gt; m a -&gt; m sep -&gt; m [a]
</span><a href="Distribution.Compat.Parsing.html#sepBy"><span class="hs-identifier hs-var">P.sepBy</span></a></span><span> </span><span class="annot"><span class="annottext">m ModuleName
</span><a href="#local-6989586621679648437"><span class="hs-identifier hs-var">mn</span></a></span><span> </span><span class="annot"><span class="annottext">m ()
</span><a href="#local-6989586621679648430"><span class="hs-identifier hs-var">cma</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-123"></span><span>        </span><span class="annot"><span class="annottext">ModuleRenaming -&gt; m ModuleRenaming
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[ModuleName] -&gt; ModuleRenaming
</span><a href="Distribution.Types.ModuleRenaming.html#HidingRenaming"><span class="hs-identifier hs-var">HidingRenaming</span></a></span><span> </span><span class="annot"><span class="annottext">[ModuleName]
</span><a href="#local-6989586621679648415"><span class="hs-identifier hs-var">hides</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-124"></span><span>    </span><span id="local-6989586621679648424"><span class="annot"><span class="annottext">parseList :: m [(ModuleName, ModuleName)]
</span><a href="#local-6989586621679648424"><span class="hs-identifier hs-var hs-var">parseList</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-125"></span><span>        </span><span class="annot"><span class="annottext">m (ModuleName, ModuleName) -&gt; m () -&gt; m [(ModuleName, ModuleName)]
forall (m :: * -&gt; *) a sep. Alternative m =&gt; m a -&gt; m sep -&gt; m [a]
</span><a href="Distribution.Compat.Parsing.html#sepBy"><span class="hs-identifier hs-var">P.sepBy</span></a></span><span> </span><span class="annot"><span class="annottext">m (ModuleName, ModuleName)
</span><a href="#local-6989586621679648412"><span class="hs-identifier hs-var">parseEntry</span></a></span><span> </span><span class="annot"><span class="annottext">m ()
</span><a href="#local-6989586621679648430"><span class="hs-identifier hs-var">cma</span></a></span><span>
</span><span id="line-126"></span><span>    </span><span id="local-6989586621679648412"><span class="annot"><span class="annottext">parseEntry :: m (ModuleName, ModuleName)
</span><a href="#local-6989586621679648412"><span class="hs-identifier hs-var hs-var">parseEntry</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-127"></span><span>        </span><span id="local-6989586621679648395"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648395"><span class="hs-identifier hs-var">orig</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">m ModuleName
forall a (m :: * -&gt; *). (Parsec a, CabalParsing m) =&gt; m a
</span><a href="Distribution.Parsec.html#parsec"><span class="hs-identifier hs-var">parsec</span></a></span><span>
</span><span id="line-128"></span><span>        </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span>
</span><span id="line-129"></span><span>        </span><span class="annot"><span class="annottext">(ModuleName, ModuleName)
-&gt; m (ModuleName, ModuleName) -&gt; m (ModuleName, ModuleName)
forall (m :: * -&gt; *) a. Alternative m =&gt; a -&gt; m a -&gt; m a
</span><a href="Distribution.Compat.Parsing.html#option"><span class="hs-identifier hs-var">P.option</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648395"><span class="hs-identifier hs-var">orig</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648395"><span class="hs-identifier hs-var">orig</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(m (ModuleName, ModuleName) -&gt; m (ModuleName, ModuleName))
-&gt; m (ModuleName, ModuleName) -&gt; m (ModuleName, ModuleName)
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-130"></span><span>            </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">String -&gt; m String
forall (m :: * -&gt; *). CharParsing m =&gt; String -&gt; m String
</span><a href="Distribution.Compat.CharParsing.html#string"><span class="hs-identifier hs-var">P.string</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;as&quot;</span></span><span>
</span><span id="line-131"></span><span>            </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#skipSpaces1"><span class="hs-identifier hs-var">P.skipSpaces1</span></a></span><span> </span><span class="hs-comment">-- require space after &quot;as&quot;</span><span>
</span><span id="line-132"></span><span>            </span><span id="local-6989586621679648392"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648392"><span class="hs-identifier hs-var">new</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">m ModuleName
forall a (m :: * -&gt; *). (Parsec a, CabalParsing m) =&gt; m a
</span><a href="Distribution.Parsec.html#parsec"><span class="hs-identifier hs-var">parsec</span></a></span><span>
</span><span id="line-133"></span><span>            </span><span class="annot"><span class="annottext">m ()
forall (m :: * -&gt; *). CharParsing m =&gt; m ()
</span><a href="Distribution.Compat.CharParsing.html#spaces"><span class="hs-identifier hs-var">P.spaces</span></a></span><span>
</span><span id="line-134"></span><span>            </span><span class="annot"><span class="annottext">(ModuleName, ModuleName) -&gt; m (ModuleName, ModuleName)
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648395"><span class="hs-identifier hs-var">orig</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621679648392"><span class="hs-identifier hs-var">new</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-135"></span></pre></body></html>